package com.example.wxminiprogram.controller;

import com.example.wxminiprogram.pojo.Result;
import com.example.wxminiprogram.service.ShopService;
import jakarta.websocket.server.PathParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class ShopController {
    @Autowired
    ShopService shopService;
    @GetMapping("/api/public/v1/shop/to_seller")
    public Result listToSeller(@PathParam("seller_id") Integer seller_id){
        return Result.success(this.shopService.listShopToSeller(seller_id));
    }
}
